<?php
require('config.php');

        $goods_id=$_REQUEST['goods_id'];
		$sql="select goodsId,goodsCatId,goodsSn,goodsImg,goodsName,shopPrice,goodsStock,goodsDesc,marketPrice,goodsThums,saleCount,createTime from `".$oto."_integral` where `goodsId`='".$goods_id."' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		// if(isset($person_info))
		// {
		// 	$person_info[0]['goodsContent']=htmlspecialchars_decode($person_info[0]['goodsContent']);
		// }
		if(isset($person_info)) echo json_encode($person_info);
		else echo '[]';
?>